//
// Created by jsjxsy on 2022/9/1.
// 静态数组
//
#include <array>
#include <iostream>
using namespace std;
int main() {
  array<int, 5> a2;
  for (int i = 0; i < a2.size(); i++) {
    cout << a2[i] << " ";
  }
  cout << endl;

  array<int, 5> a1 = {0};
  for (int i = 0; i < a1.size(); i++) {
    cout << a1[i] << " ";
  }

  cout << endl;

  array<string, 3> a3 = {"one", "two"};
  a3[2] = "three";
  a3[3] = "four";
  a3[-1] = "-1";
  for (int i = 0; i < a3.size(); i++) {
    cout << a3[i] << " ";
  }

  cout << endl;
  return 0;
}
